package com.shanyu.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.shanyu.dto.ItemDto;
import com.shanyu.service.IItemService;

@RestController
@RequestMapping(value = "/item")
public class ItemController {
	
	@Autowired
	private IItemService itemServcie;
	
	@RequestMapping(value = "/detail/get",method = RequestMethod.GET)
	public ItemDto getDetail(String itemId,@RequestParam(required = false) String memberId){
		return itemServcie.getDetail(itemId,memberId);
	}

}
